package com.photo.task;

import com.photo.test.TestBean;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.scheduling.quartz.QuartzJobBean;
import org.quartz.JobExecutionContext;

import java.util.TimerTask;

public class EmailReportTask2 extends QuartzJobBean {
    Log log = LogFactory.getLog(EmailReportTask.class);

    public EmailReportTask2() {
    }

    protected void executeInternal(JobExecutionContext jobExecutionContext) throws org.quartz.JobExecutionException {

        log.debug("task 2 begin :" + testBean.greeting);
    }


    private TestBean testBean;

    public void setTestBean(TestBean testBean) {
        this.testBean = testBean;
    }
}